import request from '@/utils/request'

// 查询列表展示
export function listAdminDepts(query) {
  return request({
    url: '/com.mmk.admin.api.AdminDeptsProvider/1.0.0/listAdminDepts.html',
    method: 'post',
    data: query
  })
}

//部门添加
export function saveDept(query) {
    return request({
      url: '/com.mmk.admin.api.AdminDeptsProvider/1.0.0/saveDept.html',
      method: 'post',
      data: query
    })
}

//状态修改
export function updateDeptsStatus(query) {
    return request({
      url: '/com.mmk.admin.api.AdminDeptsProvider/1.0.0/updateDeptsStatus.html',
      method: 'post',
      data: query
    })
}

//部门修改
export function updateDept(query) {
    return request({
      url: '/com.mmk.admin.api.AdminDeptsProvider/1.0.0/updateDept.html',
      method: 'post',
      data: query
    })
}